package com.shanshan.system.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shanshan.system.entity.Period;
import com.shanshan.system.mapper.PeriodMapper;
import com.shanshan.system.service.PeriodService;
import com.shanshan.system.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author keluoyisi
 * @program: shanshan
 * @description:
 * @date 2023-02-10 17:25:27
 */
@Service
@SuppressWarnings("all")
public class PeriodServiceImpl  extends ServiceImpl<PeriodMapper, Period> implements PeriodService {
    @Autowired
    private PeriodMapper periodMapper;

    @Override
    public Result selectPeriodAll() {
        List<Period> periods = periodMapper.selectList(null);

        return new Result(200,"成功",periods);
    }
}
